var t = new(require("../../../utils/http").HTTP);
let { linkman } = require("../../../api/attract/select");

Page({
  data: {
    infor: [],
    show: !1
  },
  onLoad: function (a) {
    var n = this;
    n.setData({
        lID: a.IID
      }),
      linkman(n.data.lID).then((function (t) {
        n.setData({
            infor: t.data[0]
          }),
          0 !== t.data.length && n.setData({
            show: !0
          })
      }))
  },
  renewal: function (t) {
    wx.navigateTo({
      url: "../compile/compile?lID=" + this.data.lID
    })
  },
  onShow: function () {
    var a = this;
    linkman(a.data.lID).then((function (t) {
      a.setData({
          infor: t.data[0]
        }),
        wx.setStorageSync("infor", a.data.infor)
    }))
  }
});